import React, { Component } from 'react'
import Test from './Test'

export default class App extends Component {
  state = {
    bBar: true,
  }
  render() {
    return (
      <div>
        <button onClick={() => this.setState({ bBar: !this.state.bBar })}>
          卸载/创建
        </button>
        {this.state.bBar ? <Test /> : null}
      </div>
    )
  }
}
